package com.example.beautymakeup.dao;

import com.example.beautymakeup.pojo.Information;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface InformationDao {
    @Select("select * from information where uid = 1;")
    Information get();

    @Update("update information set use_text = #{use_text},privacy_text = #{privacy_text},title = #{title},one_introduce = #{one_introduce},two_introduce = #{two_introduce},image = #{image} where uid = 1;")
    int update(Information information);
}
